<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/Sys_Role.js此处编写
 -->
 <template>
    <view-grid ref="grid"
                :columns="columns"
                :detail="detail"
                :editFormFields="editFormFields"
                :editFormOptions="editFormOptions"
                :searchFormFields="searchFormFields"
                :searchFormOptions="searchFormOptions"
                :table="table"
                :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/system/Sys_Role.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'Id',
                footer: "Foots",
                cnName: '测试',
                name: 'TestView',
                url: "/Sys_Test/",
                sortName: "Id"
            });
            const editFormFields = ref({"Name":""});
            const editFormOptions = ref([[
                                {"title":"角色名称","required":true,"field":"Name"}],
                                ]);
            const searchFormFields = ref({"Name":""});
            const searchFormOptions = ref([[{"title":"角色名称","field":"Name","type":"text"}]]);
            const columns = ref([{field:'Id',title:'ID',type:'int',width:70,readonly:true,require:true,align:'left',sortable:true},
                        {field:'Name',title:'角色名称',type:'string',link:true,width:90,require:true,align:'left'},]);
            const detail = ref({
                cnName: "#detailCnName",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
